package com.hqyj.dao;

import com.hqyj.pojo.Admin;
import com.hqyj.pojo.Employee;
import com.hqyj.pojo.Manager;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminDao {
/*
    //获取全部Admin用户信息
    List<Admin> queryAdminAll();*/

    //查询全部Manager用户信息
    List<Manager> queryManagerAll();

    //查询所有Employee  员工
    List<Employee> queryEmployeeAll();

    //新增Employee
    int insertEmpOne(Employee employee);
    //删除Employee
    int deleteEmpOne(Employee employee);

    //更新Employee
    int updateEmpOne(Employee employee);

/*    //往数据库添加一个Admin用户
    int insertAdminOne(Admin admin);*/

    //往数据库添加一个Managger用户
    int insertManagerOne(Manager manager);

    //更新一个Admin用户
    int updateAdminOne(Admin admin);

    //更新一个Manager用户
    int updateManagerOne(Manager manager);

/*    //删除一个Admin用户
    int deleteAdminOne(Admin admin);*/

    //删除一个Manager用户
    int deleteManagerOne(Manager manager);

    //系统管理员登录
    Admin findAdminByUserName(@Param("username")String username, @Param("password")String password);

    Admin queryByUsername(String username);

}
